package com.xhsj.user.pms.workflow.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xhsj.user.pms.workflow.domain.WorkflowLink;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface WorkflowLinkMapper extends BaseMapper<WorkflowLink> {

    /**
     * 根据流程节点获取上一节点为该流程节点的流程线集合
     * @param nodeId
     * @return
     */
    List<WorkflowLink> selectLinkListByPreNode(@Param("nodeId")  String nodeId, @Param("flowCode") String flowCode);

    List<WorkflowLink> selectLinkListByNodeId(@Param("workflowNode")  String workflowNode, @Param("flowCode") int flowCode);

    // 流程节点列表
    List<Map<String, Object>> getWorkFlowNodeList();
}